package com.game.frame;

import com.game.utils.StaticValue;

import java.awt.*;
import java.awt.image.BufferedImage;

public class PersonImg {
    private BufferedImage showImage = null;         // 存储人物的图片
    private int sort = 0;                           // 当前是第几张
    private int nextSort = 0;                       // 下一张是第几张

    public PersonImg(int sort) {
        this.sort = sort;
        createPersonImg();
    }

    private void createPersonImg() {
        if (sort == 0){
            showImage = StaticValue.perStatic;
        }
    }

    // getter and setter
    public BufferedImage getShowImage() {
        return showImage;
    }

    public void setShowImage(BufferedImage showImage) {
        this.showImage = showImage;
    }

    public int getSort() {
        return sort;
    }

    public void setSort(int sort) {
        this.sort = sort;
    }

    public int getNextSort() {
        return nextSort;
    }

    public void setNextSort(int nextSort) {
        this.nextSort = nextSort;
    }
}
